# 圆周率的计算
# import time
# from random import random
# from time import perf_counter
# DARTS = 1000000
# hits = 0.0
# start = perf_counter()
# for i in range(1, DARTS+1):
#     x, y = random(), random()
#     dist = pow(x ** 2 + y ** 2, 0.5)
#     if dist <= 1.0:
#         hits = hits + 1
# pi = 4 * (hits / DARTS)
# end = time.perf_counter()
# print("圆周率值是：{}".format(pi))
# print("运行时间是：{:.5f}s".format(end-start))

# dic = {'Wangbing': 1001, 'Maling': 1003, 'Xulei': 1004}
# ndic = dict(zip(dic.values(), dic.keys()))
# num = eval(input("输入学号："))
# print(ndic.get(num, 'NoFound'))

# string = input("请输入字符串：")
# string = string.lower()
# print(len(set(string) & set("aeiou")) != 0)

# classA = set((1, 3, 7, 15, 22, 26, 27))
# classB = set((1, 4, 8, 9, 15, 20, 26,30))
# openDay = set((1, 8, 15, 22, 29))
# # 求两个班级都想去图书馆集体看书的日期号。
# print(classA & classB)
# # 求仅有一个班级想去图书馆集体看书的日期号。
# print(classA ^ classB)
# # 求classA班想去但classB班不想去图书馆集体看书的日期号。
# print(classA - classB)
# # 求两个班级能一起去图书馆集体看书的日期号。
# print(classA & classB & openDay)
# # 求classA班能去而classB班不能去图书馆集体看书的日期号。
# print((classA - classB) & openDay)

# price = eval(input("请输入单价："))
# price = round(price, 2)
# count = eval(input("请输入数量："))
# print("总价为{:.1f}".format(price * count))

# num1 = int(input("输入第一个整数："))
# num2 = int(input("输入第二个整数："))
# max_num = num1 if num1 > num2 else num2
# print(max_num)

# season = input("季节（春夏秋冬）：")
# tempt = int(input("温度："))
# if (season == '春' and tempt >= 18 and tempt <= 25) or (season == '秋' and tempt >= 18 and tempt <= 25) or (season == '夏' and tempt >= 19 and tempt <= 24) or (season == '冬' and tempt >= 12 and tempt <= 22):
#     print("舒适")
# else:
#     print("不舒适")

# num1, num2 = map(int, input("输入两个正整数：").split(','))
# while 1:
#     opt = int(input("(1:+, 2:-, 3:*, 4:/):"))
#     if opt == 1:
#         print("{} + {} = {}".format(num1, num2, num1 + num2))
#     elif opt == 2:
#         print("{} - {} = {}".format(num1, num2, num1 - num2))
#     elif opt == 3:
#         print("{} * {} = {}".format(num1, num2, num1 * num2))
#     elif opt == 4:
#         print("{} / {} = {}".format(num1, num2, num1 / num2))
#     else:
#         print("Bye!")
#         break

# list1 = []
# while len(list1) < 4:
#     num = input("x[10, 100]:")
#     if num.isdigit() and int(num) >= 10 and int(num) <= 100:
#         list1.append(num)
#     else:
#         print("input error!!!")
# print(list1)

# num = int(input("输入："))
# for i in range(0, num):
#     print(" " * i + "#" * (2 * (num-i) - 1 ))
#     print("\r")

# dict1 = {'0': "zero", '1': "one", '2': "two", '3': "three", '4': "four", '5': "five", '6': "six", '7': "seven", '8': "eight", '9': "nine"}
# num = input("输入：")
# list1 = []
# for i in range(0, len(num)):
#     list1.append(dict1.get(num[i]))
# print('-'.join(list1))

